package Users.Models;

import java.util.Random;

public class UserModels {
    private String UserName;
    private String PassWord;
    private long Integral;
    private int CardType;
    private int UserCard;

    public void setCardType() {
        CardType = new Random().nextInt(3) + 1;
    }

    public String getCardType(){
        if (CardType == 1) {
            return "普通卡";
        }else{
            return "钻石卡";
        }
    }

    public void setIntegral(long integral) {
        Integral = integral;
    }

    public long getIntegral() {
        return Integral;
    }

    public int getUserCard() {
        return UserCard;
    }

    public void setUserCard(int userCard) {
        this.UserCard = userCard;
    }

    public String getPassWord() {
        return this.PassWord;
    }

    public void setPassWord(String passWord) {
        this.PassWord = passWord;
    }

    public String getUserName() {
        return this.UserName;
    }

    public void setUserName(String userName) {
        this.UserName = userName;
    }

    @Override
    public String toString() {
        return "{" +
                "UserName='" + getUserName() + '\'' +
                ", PassWord='" + getPassWord() + '\'' +
                ", Integral=" + getIntegral() +
                ", CardType=" + getCardType() +
                ", UserCard=" + getUserCard() +
                '}';
    }
}
